package com.yangxd.hospital.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yangxd.hospital.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yangxd
 * @since 2021-05-09
 */
public interface DepartmentService extends IService<Department> {

    /**
     * 分页多条件查询科室
     *
     * @param page
     * @param wrapper
     * @return
     */
    IPage<Department> findPageDepartment(Page<Department> page, @Param(Constants.WRAPPER) QueryWrapper<Department> wrapper);

    /**
     * 删除
     * @param departmentId
     */
    void deleteById(Integer departmentId);

    /**
     * 新增科室
     *
     * @param department
     */
    void saveDepartment(Department department);
}
